import hasPermissionCheck from './hasPermissionCheck'

const install = function(Vue) {
  Vue.directive('hasPermissionCheck', hasPermissionCheck)
}

if (window.Vue) {
  window['hasPermissionCheck'] = hasPermissionCheck
  Vue.use(install); // eslint-disable-line
}

hasPermissionCheck.install = install
export default hasPermissionCheck
